Response

class Response(val request_op_code: OpCode? = null, val status: Status? = null, val device_status: DeviceStatus? = null, unknownFields: ByteString = ByteString.EMPTY) : Message<Response, Nothing>

A response type which is sent back from the device.

Constructors

Link copied to clipboard
constructor(request_op_code: OpCode? = null, status: Status? = null, device_status: DeviceStatus? = null, unknownFields: ByteString = ByteString.EMPTY)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val adapter: ProtoAdapter<Response>
Link copied to clipboard

Parameters: The device status is set as a response to GET_STATUS.

Link copied to clipboard
val request_op_code: OpCode? = null

Request op code.

Link copied to clipboard
val status: Status? = null

Status of the operation.

Link copied to clipboard
open val unknownFields: ByteString

Functions

Link copied to clipboard
fun copy(request_op_code: OpCode? = this.request_op_code, status: Status? = this.status, device_status: DeviceStatus? = this.device_status, unknownFields: ByteString = this.unknownFields): Response
Link copied to clipboard
fun encode(stream: OutputStream)
fun encode(sink: BufferedSink)
Link copied to clipboard
fun encodeByteString(): ByteString
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard